home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak Vol A-4
/
(Vol A-4) Vol. A4.iso
/
Games
/
loa_and_the_island.swf
/
scripts
/
frame_212
/
PlaceObject2_883_1436
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2008-03-17
|
820b
|
37 lines
onClipEvent(enterFrame){
if(_root.paused == false and (_global.location == 4 or _global.location == 6))
{
_visible = true;
_alpha = (100 + _alpha) / 2;
_Y = _Y - _yscale / 5;
_X = _X + xmove;
xmove += (random(11) - 5) * _xscale / 100;
if(_X < -20)
{
_X = 560;
}
if(_X > 570)
{
_X = -10;
}
if(_Y < -20)
{
_Y = 420;
_xscale = random(141) + 10;
_yscale = _xscale;
xmove = 0;
}
}
if(_root.paused == true and (_global.location == 4 or _global.location == 6) and _root.conversation == false)
{
if(key.isDown(40))
{
_alpha = _alpha / 2;
}
else
{
_alpha = (100 + _alpha) / 2;
}
}
}